/*
 * 项目名称:    wms-server-jeecg
 * 创建人员:    DongPeng
 * 创建时间:    2023-10-06
 * copyright(c) 2022 无锡星智数服科技有限公司
 */
package org.jeecg.modules.dock.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.jeecg.modules.dock.entity.light.request.IbsModelListVO;
import org.jeecg.modules.dock.entity.light.request.LightRequestVO;
import org.jeecg.modules.dock.service.IWmsLightConfigService;
import org.jeecg.modules.dock.service.LightIBSDockingService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 按灯系统控制器
 *
 * @author DongPeng
 * @version 1.0.0
 * @date 2023-10-06
 * @description 类描述
 */
@RestController
@RequestMapping("/dock/light")
@RequiredArgsConstructor
@Api(tags="按灯系统控制器")
public class LightIBSDockingController {

    private final LightIBSDockingService lightIBSDockingService;

    /**
     * 按灯系统控制
     * 
     * @author DongPeng
     * @date 2023/10/6 16:33
     * @param vo 请求体
     * @return int 0:失败 1:成功
     */
    @ApiOperation(value = "按灯系统控制", notes = "按灯系统控制")
    @PostMapping("/call")
    public int lightIBS(@RequestBody List<LightRequestVO> vo) {
        return lightIBSDockingService.lightIBS(vo);
    }
}
